import Vue from 'vue'
import App from './App'
// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

// 注册全局组件，下拉刷新上拉加载
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.component('mescroll-body', MescrollBody)
Vue.component('mescroll-uni', MescrollUni)



//配置全局api
import $api from "./common/thcommon.js";
Vue.prototype.$api = $api;

//config http 配置文件管理
import config from './common/config.js'
Vue.prototype.$config = config;

//config http 配置文件管理
import http from './common/request.js'
Vue.prototype.$http = http;

import utils from './common/utils.js'
Vue.prototype.$loding = utils;

//时间过滤
import * as custom from './common/filter.js'
Object.keys(custom).forEach(key => {
	Vue.filter(key, custom[key])
})
//vuex 状态管理
import store from './store'
Vue.prototype.$store = store;

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})
app.$mount()
